<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:80px;"><Btn class="BtnAdd" value="全部下载" ng-click="btnDownloadAll()"></Btn></div>
  <div class="LableDiv" style="width:80px;"><Btn class="BtnAdd" value="全部同步" ng-click="btnSyncAll()"></Btn></div>
</div>

<div class="row RowSpace">
  <DataGrid module="Module._App" rowdblclick="rowDblClick()" isedit="false" height="450px">
      <Column Type="TextBox" DisplayName="AppID" width="120px" ValueField="AppID"></Column>
      <Column Type="TextBox" DisplayName="名称" width="100px" ValueField="Name"></Column>
      <Column Type="DropDownList" DisplayName="类型" width="80px" ValueField='Type' Enum="DeviceTypeEnum"></Column>
      <Column Type="TextBox" DisplayName="当前版本" width="120px" ValueField="CurrentVersion"></Column>
      <Column Type="TextBox" DisplayName="最新版本" width="120px" ValueField="Version"></Column>
      <Column Type="NumberBox" DisplayName="大小(M)" width="70px" ValueField="_FileSize" round="{Precision: 2}"></Column>
      <Column Type="TextBox" DisplayName="备注" width="120px" ValueField="Remark"></Column>
      <Column Type="CheckBox" DisplayName="已同步" width="65px" ValueField="IsSync"></Column>
      <Column Type="Html" DisplayName="操作" width="60px">
        <button type="button" class="btn btn-xs BtnAdd" style="color:#FFF;" ng-show="CurrentRecord.DownloadStatus == 1 && CurrentRecord.IsEffective" ng-click="download(CurrentRecord)"> 
             <span class="glyphicon glyphicon-download"></span>下载 
        </button> 
        <button type="button" class="btn btn-success btn-xs" ng-show="CurrentRecord.DownloadStatus == 2 && CurrentRecord.IsEffective" ng-Click="download(CurrentRecord)"> 
          <span class="glyphicon glyphicon-upload"></span>更新 
        </button>
        <!-- <div style="width:28px;height:28px;border:solid 0px #0000ff;">
          <canvas width="28" height="28" style="border:0px solid #d3d3d3;">   
          </canvas>
          <div style="position:relative;top:-22px;left:9px;border:solid 1px #0000ff;width:6px;height:6px;background-color:#0000ff;"></div>
        </div> -->
        <button type="button" class="btn btn-danger btn-xs" ng-click="remove($index)" ng-show="!CurrentRecord.IsEffective"> 
          <span class="glyphicon glyphicon-trash"></span>删除 
        </button>
        <div style="text-align:center;color:#FFF;width:100%; height:100%;background-color:#5cb85c;border:solid 1px #4cae4c;display:none;"> &nbsp;</div>
      </Column>
  </DataGrid>
</div>